
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page pageEncoding="UTF-8" %>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.entity.Emp" %>
<%@page import="java.util.List" %>



<html><body>
<table border=1 bordercolor=blue cellspacing=0 align=center width=40%>
    <tr bgcolor='lightblue' align=center>
        <td>Id</td>
        <td>Name</td>
        <td>Age</td>
        <td>Salary</td>
        <td>删除</td>
    </tr>


    <c:forEach var="emp" items="${requestScope.list}" varStatus="vs">
        <tr>
            <td>${emp.id}</td>
            <td>${emp.username}</td>
            <td>${emp.salary}</td>
            <td>${emp.age}</td>
            <td><a href="/ems/DelAction?id=${emp.id}">delete</a></td>
        </tr>
    </c:forEach>
</table>
<h1><a href='/ems/zjh/addEmp.jsp'>add Student</a></h1>
</body></html>